import {createRouter,createWebHashHistory} from 'vue-router'
import MainLayout from "../../layout/MainLayout";

const ETHPeriod = () => import("@/currency/eth/rsi/Period");
const StatisticsProfit = () => import("@/currency/eth/rsi/StatisticsProfit");

export const routes = [
    {
        path: '/',
        name: '主页',
        component: MainLayout,
        children: [
            {
                path: 'eth/period/:cycle',
                name: 'ETH Period',
                component: ETHPeriod
            },
            {
                path: 'eth/statistics/profit',
                name: 'ETH 每日盈亏统计',
                component: StatisticsProfit
            }
        ]
    },
    // {
    //     path: '*',
    //     redirect: '/404',
    //     hidden: true
    // }
]



export default createRouter({
    history: createWebHashHistory(),
    routes
})
